package com.woniuxy.impl;

import com.woniuxy.Person;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Chinese implements Person {
    String name;
    Integer[] arr;
    List<Integer> num1;
    Map<String,Integer> age;
    Set<Integer> num2;
    List<Map<String,Integer>> money;

    public Chinese() {

    }

    public Chinese(String name, Integer[] arr, List<Integer> num1, Map<String, Integer> age, Set<Integer> num2, List<Map<String, Integer>> money) {
        this.name = name;
        this.arr = arr;
        this.num1 = num1;
        this.age = age;
        this.num2 = num2;
        this.money = money;
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", arr=" + Arrays.toString(arr) +
                ", num1=" + num1 +
                ", age=" + age +
                ", num2=" + num2 +
                ", money=" + money +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("我是中国人，我爱吃火锅");
    }
}
